<template>
    <el-form-item class="xFurlProps" label="URL地址"><el-input type="textarea" :rows="3" placeholder="请输入地址" v-model="tempValue"></el-input></el-form-item>
</template>

<script>
export default {
    name: 'attr-sxc-url',
    props: {
        url: String
    },
    data() {
        return {
            tempValue: ''
        };
    },
    mounted() {
        this.tempValue = this.url;
    },
    watch: {
        url(val) {
            this.tempValue = val;
        },
        tempValue() {
            this.$emit('update:url', this.tempValue);
        }
    }
};
</script>

<style scoped></style>
